<template>
  <!--4.托运中心-->
  <el-submenu index="4">
    <template slot="title">
      <i class="el-icon-location"></i>
      <span>托运中心</span>
    </template>
    <el-menu-item-group>
<!--      <el-menu-item index="4-1" @click="toVehicleDispatch">车辆调度</el-menu-item>
      <el-menu-item index="4-2" @click="toConsignApplyManage">托运申请管理</el-menu-item>-->
      <el-menu-item index="4-1" @click="toCargoBookingNoteManage">货物托运单管理</el-menu-item>
      <el-menu-item index="4-2" @click="toCargoCheckupAndAcceptance">货物验收</el-menu-item>
      <el-menu-item index="4-3" @click="toVehicleTracking">车辆配送跟踪</el-menu-item>
    </el-menu-item-group>
  </el-submenu>
</template>

<script>
  export default {
    name: "SidebarConsignCenter",
    methods: {
      // 4.1 车辆调度
      toVehicleDispatch() {
        this.$router.push('/consign/vehicleDispatch')
      },
      // 4.2 托运申请管理
      toConsignApplyManage() {
        this.$router.push('/consign/consignApplyManage')
      },
      // 4.3 货物托运单管理
      toCargoBookingNoteManage() {
        this.$router.push('/consign/cargoBookingNoteManage')
      },
      // 4.4 货物验收
      toCargoCheckupAndAcceptance() {
        this.$router.push('/consign/cargoCheckupAndAcceptance')
      },
      // 4.5 车辆配送跟踪
      toVehicleTracking() {
        this.$router.push('/consign/vehicleTracking')
      }
    }
  }
</script>

<style scoped>

</style>